package top.bingoz.wanandroid.model.impl

import io.reactivex.Flowable
import io.reactivex.Observable
import top.bingoz.wanandroid.bean.Banner
import top.bingoz.wanandroid.bean.BaseResult
import top.bingoz.wanandroid.bean.Data
import top.bingoz.wanandroid.data.http.ApiService
import top.bingoz.wanandroid.data.http.transformer.DataTransformer
import top.bingoz.wanandroid.model.ApiModel
import javax.inject.Inject

/**
 * @author su
 * @date 2018/7/30
 * @description
 */
class ApiModelImpl @Inject constructor(var apiService: ApiService) : ApiModel {
    override fun getBanner(): Flowable<BaseResult<List<Banner>>> {
        return apiService.getBanner()

    }


    override fun getMainArticleList(page: Int): Flowable<BaseResult<Data>> {

        return apiService.getMainArticleList(page)

    }

}